package com.patterns.singleton.SomSingleton;

/**
 * Created by Xiao Yiyun on 2017/4/12.
 */
public class Minister {

    public static void main(String[] args) {
        int num = 5;
        for (int i=0; i<num; i++) {
            Emperor emperor = Emperor.getInstance();
            System.out.println("第" + i + "个大臣参拜的是:");
            emperor.say();
        }
    }
}
